﻿Public Class SumNumbers
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles btnCalculate.Click

        lblMessage.Text = getResult(txtFirstNumber.Text, txtSecondNumber.Text)

    End Sub

    Private Function getResult(ByVal firstInput As String, ByVal secondInput As String) As String

        Return Convert.ToSingle(firstInput) + Convert.ToSingle(secondInput)

    End Function


End Class